FUNCTION A : INT
VAR_INPUT
B : INT;
END_VAR
A := A(B := B-1) + B;
END_FUNCTION